package int64

import "clientDemo/service/variable"

type VariableInt64 struct {
	id   uint32
	t    variable.Type_Variable
	data int64
}

func (v *VariableInt64) GetId() uint32 {
	return v.id
}
func (v *VariableInt64) GetType() variable.Type_Variable {
	return v.t
}
func (v *VariableInt64) SetType(t variable.Type_Variable) {
	v.t = t
}
func (v *VariableInt64) GetValue() (interface{}, error) {
	return v.data, nil
}
func (v *VariableInt64) SetValue(param interface{}) error {
	data, ok := param.(int64)
	if ok {
		v.data = data
	}
	return nil
}
